---
title: 'Automatic Instrumentation'
sidebarTitle: 'Native'
icon: 'php'
---

<Info>
  This language instrumentation is using OpenTelemetry native-php SDK and instrumentation libraries.
</Info>

## Supported Versions

The minimal supported version of PHP is **8.1.0**.
The maximal supported version of PHP is **8.4.x**, when PHP releases a new version we'll add the support for it.

<Danger>
  PHP version **8.0** has been deprecated and is no longer supported.
</Danger>

<Warning>
  PHP version **8.1** has limited library support and will be the next version to be deprecated.
</Warning>

<Check>
  PHP version **8.2+** is the recommended version for new projects.
</Check>

## Instrumentation Libraries

The following PHP modules will be auto instrumented by Odigos:

### PHP Standards Recommendations (PSR):

- [`psr/3 (log)`](https://packagist.org/packages/psr/log) versions `>=1`
- [`psr/6 (cache)`](https://packagist.org/packages/psr/cache) versions `>=1`
- [`psr/16 (simple-cache)`](https://packagist.org/packages/psr/simple-cache) versions `>=1`
- [`psr/14 (event-dispatcher)`](https://packagist.org/packages/psr/event-dispatcher) versions `>=1`
- [`psr/15 (http-server-middleware)`](https://packagist.org/packages/psr/http-server-middleware) versions `>=1`
- [`psr/18 (http-client)`](https://packagist.org/packages/psr/http-client) versions `>=1`

### HTTP Clients:

- [`php-http/httplug`](https://packagist.org/packages/php-http/httplug) versions `>=2`
- [`guzzlehttp/guzzle`](https://packagist.org/packages/guzzlehttp/guzzle) versions `>=7`
- [`ext-curl`](https://www.php.net/manual/en/book.curl.php) versions `*`
<Warning>
  `ext-curl` not supported for PHP 8.1
</Warning>

### Frameworks:

<Info>
  We're working on adding support for `laravel`, `cakephp`, `wordpress`, `yii2` and `codeigniter` frameworks.
</Info>

- [`slim/slim`](https://packagist.org/packages/slim/slim) versions `>=4`
- [`symfony/http-kernel`](https://packagist.org/packages/symfony/http-kernel) versions `*`
- [`symfony/http-client-contracts`](https://packagist.org/packages/symfony/http-client-contracts) versions `*`

### Databases:

- [`ext-mongodb`](https://www.php.net/manual/en/book.mongodb.php) versions `>=1.13`
- [`ext-mysqli`](https://www.php.net/manual/en/book.mysqli.php) versions `*`
<Warning>
  `ext-mysqli` not supported for PHP 8.1
</Warning>
- [`ext-pdo`](https://www.php.net/manual/en/book.pdo.php) versions `*`
<Warning>
  `ext-pdo` not supported for PHP 8.1
</Warning>
- [`doctrine/dbal`](https://packagist.org/packages/doctrine/dbal) versions `>=3`
<Warning>
  `doctrine/dbal` not supported for PHP 8.1
</Warning>

### Messaging Systems:

- [`ext-amqp`](https://pecl.php.net/package/amqp) versions `*`
<Warning>
  `ext-amqp` not supported for PHP 8.1
</Warning>
- [`ext-rdkafka`](https://pecl.php.net/package/rdkafka) versions `*`
<Warning>
  `ext-rdkafka` not supported for PHP 8.1
</Warning>

### Atificial Intelligence:

- [`openai-php/client`](https://packagist.org/packages/openai-php/client) versions `*`
